package lab02.test11;

public class Rectangle implements Printx {
     double long1;
     double width;
     double girth;
    double area;
    double girth(){
       return girth=(long1+width)*2;
    }
    double area(){
     return    area=long1*width;
    }
    @Override
    public void printMyWay() {
        System.out.println("the long is "+long1+"width is "+width+"girth" +
                " is "+girth()
        +"area is "+area());
    }
}
